//logs.js
const request = require('../../utils/request')

Page({
  data: {
    navbar: [],
    contents: []
  },
async onLoad () {
  const reslut = await request({
    url: 'https://shopapi.smartisan.com/mobile/classify'
  })
  console.log(reslut)
  this.setData({
    navbar: reslut,
    contents: reslut[0].banner
  })
  }
})
